home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Buyer 1995 November
/
SHOWCASE.ISO
/
files
/
gallery.dir
/
00039_Script_Left Button Script
< prev
next >
Wrap
Text File
|
1995-06-12
|
3KB
|
70 lines
global gPictureSprite, gCurrentSection, gCurrentPicture, gNumOPics, gProductSelect
global gMacIDSprite, gWindowsIdSprite, gDemoButtonSprite, gLaunchQTButton
on mousedown
set the puppet of sprite the clickon to true
repeat while the stilldown
if rollover(the clickon) then
set the castnum of sprite (the clickon) = the number of cast "GDemoLeft lit"
updateStage
else
set the castnum of sprite (the clickon) = the number of cast "GDemoLeft"
updateStage
end if
end repeat
end
on mouseUp
if rollover(the clickon) then
set the castnum of sprite (the clickon) = the number of cast "GDemoLeft"
updatestage
set the puppet of sprite the clickon to false
set gCurrentPicture = gCurrentPicture - 1
if gCurrentPicture < 1 then set gCurrentPicture = gNumOPics
set the castNum of sprite gPictureSprite = the number of cast (string(gCurrentSection) & string(gCurrentPicture))
set tempList = getaProp(gGalleryList, gCurrentSection)
if gCurrentPicture > 1 then
set the castNum of sprite gLaunchQTButton = the number of cast "PlayQT"
set gProductSelect = getAt(tempList, (gCurrentPicture - 1))
put getProp(gProductList, gProductSelect) into sectionFlags
if getAt(sectionFlags,1) then
set the castNum of sprite gMacIDSprite = the number of cast "macID lit"
else
set the castNum of sprite gMacIDSprite = the number of cast "macID"
end if
if getAt(sectionFlags,2) then
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID lit"
else
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID"
end if
if the machineType <> 256 then
if getAt(sectionFlags,3) then
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo"
else
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
exit
else
if getAt(sectionFlags,4) then
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo"
else
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
exit
end if
else
set gProductSelect = #null
set the castNum of sprite gLaunchQTButton = the number of cast "NullPlay"
set the castNum of sprite gMacIDSprite = the number of cast "macID"
set the castNum of sprite gWindowsIdSprite = the number of cast "windowsID"
set the castNum of sprite gDemoButtonSprite = the number of cast "GoDemo lit"
end if
else
set the castnum of sprite (the clickon) = the number of cast "GDemoLeft"
set the puppet of sprite the clickon to false
end if
end